import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

import './assets/index.less'
import './assets/reset-antd.less'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
// 导入图标库
import * as Icons from '@ant-design/icons-vue'
import { StartupUtils } from './common/startup-utils'

const app = createApp(App)
// 开始使用全局图标
const icons: any = Icons
for (const i in icons) {
  // 循环注册组件
  app.component(i, icons[i])
}
app.use(store).use(router).use(Antd).mount('#app')
StartupUtils.init()
